<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>订单管理 - 新增快递</title>
<link href="/style/css/summernote.css" rel="stylesheet">
<script type="text/javascript" src="/style/js/ajaxupload.js"></script> 

<?php include $this->c['_homes']['_viewsHome'] . '/_global/_head.php';?>

</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">

<!-- BEGIN HEADER -->
<?php include $this->c['_homes']['_viewsHome'] . '/_global/head.php';?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" >
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include $this->c['_homes']['_viewsHome'] . '/_global/menu.php';?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR -->
  <!-- BEGIN PAGE -->
  <div class="page-content">
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 新增快递 </h3>
        <ul class="page-breadcrumb breadcrumb">
          <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li> 订单管理 <i class="icon-angle-right"></i> </li>
          <li> <a href="exlist">快递列表</a> <i class="icon-angle-right"></i> </li>
          <li>新增快递</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
      </div>
    </div>
    <!-- END PAGE HEADER-->
    <!-- BEGIN PAGE CONTENT-->

    <div class="row">
      <div class="col-md-12">
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <form class="form-horizontal" method="post" id="add"  role="form" enctype="multipart/form-data">
          <input type="hidden" name="act" value="add">
          <div class="tabbable tabbable-custom boxless">
            <ul class="nav nav-tabs">
              <li class="active"><a href="#tab_0" data-toggle="tab">快递信息</a></li>
            </ul>
            <div class="tab-content">
              <!--Tab0-->
              <div class="tab-pane active" id="tab_0">
                <div class="portlet box blue ">
                  <div class="portlet-title">
                    <div class="caption"> <i class="icon-reorder"></i> 快递基本资料 </div>
                  </div>
                  <div class="portlet-body form">
                    <div class="form-body">
                      <div class="form-group">
                        <label  class="col-md-2 control-label">快递名称<span class="required">*</span></label>
                        <div class="col-md-6">
                          <input type="text" name="company_name" id="_company_name" maxlength="20" class="form-control"  placeholder="请输入广告标题">
                          <span class="help-block">20汉字以内</span> </div>
                      </div>
                        <div class="form-group">
                        <label  class="col-md-2 control-label">快递官方电话<span class="required"></span></label>
                        <div class="col-md-6">
                          <input type="text" name="company_mobile"  maxlength="11" class="form-control"  placeholder="请输入快递官方电话">
                          
                      </div>
                    </div>
                       <div class="form-group">
                        <label  class="col-md-2 control-label">快递官方URL<span class="required"></span></label>
                        <div class="col-md-6">
                          <input type="text" name="company_url"  maxlength="255" class="form-control"  placeholder="请输入快递官方URL">
                          
                      </div>
                    </div>
                    <div class="form-actions fluid">
                      <div class="col-md-offset-3 col-md-9">
                        <button type="button" class="btn green" id="ss">提交</button>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </form>
        <!-- END SAMPLE FORM PORTLET-->
      </div>
    </div>
    <!-- END PAGE CONTENT-->
  </div>
  <!-- END PAGE -->
</div>
<!-- END CONTAINER -->
<?php include $this->c['_homes']['_viewsHome'] . '/_global/_footer.php';?>
<!-- <script type="text/javascript" src="/style/assets/plugins/ckeditor/ckeditor.js"></script> -->






<script>
jQuery(document).ready(function() {
   App.init();
   
});

$("#ss").click(function(){
  if($("#_company_name").prop("value")==""){
    swal("请输入快递名称");
    return false;
  }

  $.ajax({type:'POST',url:"/order/ajax",data:$('#add').serialize(), dataType: "json", success: function(data) {
                if(data.code==200){
                    swal("添加快递成功",false,"success");
                    setTimeout(function(){
                         window.location.href = "/order/exlist";
                     },2100);
                }else{
                   
                   	     swal(data.msg,false,"error");

                }
              }
            });
})


</script>


    
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>